<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Productspec_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-productspec_id" data-rule="required" data-source="wu/productspec/index" class="form-control selectpage" name="row[productspec_id]" type="text" value="{$row.productspec_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Procedurenumber')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-procedurenumber" data-rule="required" class="form-control" name="row[procedurenumber]" type="text" value="{$row.procedurenumber}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manhours')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manhours" data-rule="required" class="form-control" step="0.0001" name="row[manhours]" type="number" value="{$row.manhours}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">順序:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order" data-rule="required" class="form-control" step="1" name="row[order]" type="number" value="{$row.order}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style="font-size: 13px;color: #9a989f">
            註：第一個工序必須是"到廠"或"半成品庫存"或"白刀庫存"<br>
            最後一個工序必須是"半成品庫存"或"白刀庫存"或"回公司入庫"
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Msg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-msg" data-rule="" class="form-control " rows="5" name="row[msg]" cols="50">{$row.msg}</textarea>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
